package com.stormrage.entity.learn.req;

import java.io.Serializable;

import com.stormragetech.core.entity.Page;

public class LeaBunchReq implements Serializable {

	// ------------------------------- Fields -------------------------------

	private static final long serialVersionUID = -4894500608184247727L;

	// ------------------------------- Fields -------------------------------

	private Integer termId;

	private Integer acctId;

	private Integer entId;

	private String excel;

	private String path;

	private Integer locked;

	private Page page;

	// ------------------------------- Fields -------------------------------

	public LeaBunchReq() {
	}

	// ------------------------------- Fields -------------------------------

	public Integer getTermId() {
		return termId;
	}

	public void setTermId(Integer termId) {
		this.termId = termId;
	}

	public Integer getAcctId() {
		return acctId;
	}

	public void setAcctId(Integer acctId) {
		this.acctId = acctId;
	}

	public Integer getEntId() {
		return entId;
	}

	public void setEntId(Integer entId) {
		this.entId = entId;
	}

	public String getExcel() {
		return excel;
	}

	public void setExcel(String excel) {
		this.excel = excel;
	}

	public String getPath() {
		return path;
	}

	public void setPath(String path) {
		this.path = path;
	}

	public Integer getLocked() {
		return locked;
	}

	public void setLocked(Integer locked) {
		this.locked = locked;
	}

	public Page getPage() {
		return page;
	}

	public void setPage(Page page) {
		this.page = page;
	}

	// ------------------------------- Fields -------------------------------

	public static LeaBunchReq instance(Integer termId, Integer acctId, Integer entId, String excel, String path,
			Integer locked) {
		LeaBunchReq entity = new LeaBunchReq();
		if (null != termId)
			entity.setTermId(termId);
		if (null != acctId)
			entity.setAcctId(acctId);
		if (null != entId)
			entity.setEntId(entId);
		if (null != excel)
			entity.setExcel(excel);
		if (null != path)
			entity.setPath(path);
		if (null != locked)
			entity.setLocked(locked);
		return entity;
	}

	public static LeaBunchReq instance(Integer termId, Integer entId) {
		LeaBunchReq entity = new LeaBunchReq();
		entity.setTermId(termId);
		entity.setEntId(entId);
		return entity;
	}

	public static LeaBunchReq instance(Integer termId, Integer acctId, String excel) {
		LeaBunchReq entity = new LeaBunchReq();
		entity.setTermId(termId);
		entity.setAcctId(acctId);
		entity.setExcel(excel);
		return entity;
	}

	@Override
	public String toString() {
		return this.getClass() + " : termId - " + termId + " acctId - " + acctId + " entId - " + entId + " excel - "
				+ excel + " page - " + page;
	}

}
